import { createApp } from 'vue'
import '@/styles/style.css'

import "./assets/iconfont/iconfont.css"

import App from './App.vue';
import router from './router';

//防抖自定义指令
import debounce from "./directives/debounce"
//引入antd
import Antd from 'ant-design-vue';

//引入element
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
//国际化和element的icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

import "element-plus/theme-chalk/src/message.scss";

// import './tailwind.css'
import './style.css'
import './tailwind.css'

import 'ant-design-vue/dist/reset.css';
//通过element来进行写的暗夜模式
// import "@/styles/index.scss"
// import "uno.css";



//icon
import '../public/icon_font/iconfont.css'
//icon二号
import '@/assets/iconfont_zdxm/index.css'

//pinia第三方仓库
import { createPinia } from 'pinia'


//mock模拟数据
// import Mock from "./mock/index";

const app = createApp(App)
app.directive('debounce', debounce)
app.use(router)
app.use(ElementPlus, {
  locale: zhCn,
})

app.use(Antd)
app.use(createPinia())

// app.use(Mock)
app.mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
